// OperateCardLib.h : header file
//
#ifndef LIB_H
#define LIB_H

extern "C" __declspec(dllexport) BYTE Run_Mode;
extern "C" __declspec(dllexport) BYTE Card_Type;
extern "C" __declspec(dllexport) UINT GetCardInfo( UINT* CardNameLen );
extern "C" __declspec(dllexport) char** EnumCard(void);
extern "C" __declspec(dllexport) UINT GetPortNum(void);
extern "C" __declspec(dllexport) BOOL SelectPort(UINT PortID);

extern "C" __declspec(dllexport) BOOL Init(UINT CardID);
extern "C" __declspec(dllexport) BYTE WriteDPCD(UINT addr, UINT length, UCHAR *data);
extern "C" __declspec(dllexport) BYTE ReadDPCD(UINT addr, UINT length, UCHAR *data);
extern "C" __declspec(dllexport) BOOL IICWrite(unsigned char addr, unsigned short int offset, int len, char* value);
extern "C" __declspec(dllexport) BOOL IICRead(unsigned short int addr, unsigned int offset, int len, char * value);
extern "C" __declspec(dllexport) BOOL IICWrite_S(unsigned char addr, unsigned char data);
extern "C" __declspec(dllexport) BOOL IICRead_S(unsigned char addr, char * value);
extern "C" __declspec(dllexport) BOOL IICWriteWord(unsigned char addr, unsigned short int offset, int len, char* value);
extern "C" __declspec(dllexport) BOOL IICReadWord(unsigned short int addr, unsigned short int offset, int len, char * value);



extern "C" __declspec(dllexport) void FreeLib(void);
extern "C" __declspec(dllexport) void PSR_Disable(void);
extern "C" __declspec(dllexport) void PSR_Enable(void);
extern "C" __declspec(dllexport) void DPST_Enable(void);
extern "C" __declspec(dllexport) void DPST_Disable(void);
extern "C" __declspec(dllexport) BOOL Get_PSR(void);
extern "C" __declspec(dllexport) BOOL Get_DPST(void);
extern "C" __declspec(dllexport) void getdisplayconfig(void);

#endif



